package operation;

import book.Book;
import book.Booklist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wx
 * Date: 2023-11-14
 * Time: 14:49
 */
public class ShowOpreation implements IOPeration{


    @Override
    public void work(Booklist booklist) {
        System.out.println("*******  打印图书:  ******");

        int currentSize = booklist.getUsedsize();
        for (int i = 0; i < currentSize; i++) {
            Book book = booklist.getbook(i);
            System.out.println(book);
        }
    }
}
